using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using ESoft.Core.DAO;
using ESoft.Core.Data.Entity;

namespace Edu.Web.Data.Entity
{
    /// <summary>
    /// Student
    /// </summary>    
	[Table("student")]
    public partial class StudentEntity : BaseModel<long>
    {		    
        /// <summary>
        /// 学号
        /// </summary>
		[Column("stu_no")]
        public string StuNo { get; set; }
    
        /// <summary>
        /// 用户ID
        /// </summary>
		[Column("user_id")]
        public long UserId { get; set; }
    }

	public class StudentEntityRegstHelper : IEntityMapper
    {
        public void RegistTo(ConfigurationRegistrar configurations)
        {
            configurations.Add<StudentEntity>(new EntityTypeConfiguration<StudentEntity>());
        }
    }
}

